xen.git
19 years agoMerge with xenppc-unstable.hg
kfraser@localhost.localdomain [Mon, 5 Mar 2007 11:18:55 +0000 (11:18 +0000)]
Merge with xenppc-unstable.hg

19 years ago[xen] Fix deferred mmu op logic on invalidate shadow ldt.
Christian Limpach [Mon, 5 Mar 2007 11:17:52 +0000 (11:17 +0000)]
[xen] Fix deferred mmu op logic on invalidate shadow ldt.
On domain destroy, put_page_from_l1e is called on a domain
which is not current.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoMerge with xenppc-unstable.hg
kfraser@localhost.localdomain [Mon, 5 Mar 2007 11:14:15 +0000 (11:14 +0000)]
Merge with xenppc-unstable.hg

19 years agoxen: Make dom0 domain builder behaviour match that of domU.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 10:52:54 +0000 (10:52 +0000)]
xen: Make dom0 domain builder behaviour match that of domU.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Fix ACPI SLIT/SRAT parsing to correctly map highmem.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 10:37:01 +0000 (10:37 +0000)]
xen: Fix ACPI SLIT/SRAT parsing to correctly map highmem.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Clean up mm_pin/unpin.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 10:26:45 +0000 (10:26 +0000)]
linux: Clean up mm_pin/unpin.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[domain builder] Remove unnecessary alignment of virtual address base.
Christian Limpach [Sat, 3 Mar 2007 20:42:38 +0000 (20:42 +0000)]
[domain builder] Remove unnecessary alignment of virtual address base.
Unbreaks loading NetBSD kernels with the new ^^ domain builder.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agolinux: Some save/restore simplifications and cleanups.
Keir Fraser [Fri, 2 Mar 2007 23:01:36 +0000 (23:01 +0000)]
linux: Some save/restore simplifications and cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86/64: Save/restore user pagetable pointer for x86/64 PV guests.
Keir Fraser [Fri, 2 Mar 2007 22:57:27 +0000 (22:57 +0000)]
x86/64: Save/restore user pagetable pointer for x86/64 PV guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix -xen build.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:57:24 +0000 (16:57 +0000)]
Fix -xen build.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: xenbus dev write function resets packet data on *all* error conditions.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:29:48 +0000 (16:29 +0000)]
linux: xenbus dev write function resets packet data on *all* error conditions.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Fix xenbus device write function.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:26:56 +0000 (16:26 +0000)]
linux: Fix xenbus device write function.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agotpm: Code style cleanups.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:15:28 +0000 (16:15 +0000)]
tpm: Code style cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[Linux] [TPM driver] Resume frontend after checkpointing
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:03:21 +0000 (16:03 +0000)]
[Linux] [TPM driver] Resume frontend after checkpointing

This patch implements TPM frontend driver resume after checkpointing a
domain. I also now let the front-end wait for the response from the
TPM until the response is there. A response must come due to the
strict request/response nature of the protocol, but the time until the
responses arrives depends on the type of operation that is executed by
the vTPM. Resending a request is not possible with this type of device.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agolinux: Use old-mode of save/restore for uniproc guests (it's faster).
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:00:22 +0000 (16:00 +0000)]
linux: Use old-mode of save/restore for uniproc guests (it's faster).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: allow use of split page table locks
kfraser@localhost.localdomain [Fri, 2 Mar 2007 15:59:12 +0000 (15:59 +0000)]
linux: allow use of split page table locks

This changes netback to use struct page's mapping field instead of the
index one, and the PageForeign logic the other way around. That way,
CONFIG_SPLIT_PTLOCK_CPUS doesn't have to be suppressed anymore for x86.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[PVFB][TOOLS] Terminate backend when frontend vanishes early
kfraser@localhost.localdomain [Fri, 2 Mar 2007 15:32:42 +0000 (15:32 +0000)]
[PVFB][TOOLS] Terminate backend when frontend vanishes early

Ensure the backend terminates when the frontend vanishes before the
connection is established.  This happens when the guest doesn't have
the devices.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
19 years agolinux/x86: avoid a re-definition warning on x86-64 and change i386
kfraser@localhost.localdomain [Fri, 2 Mar 2007 15:12:54 +0000 (15:12 +0000)]
linux/x86: avoid a re-definition warning on x86-64 and change i386
similarly to be consistent.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago.S->.o generation should depend on asm-offsets.h
kfraser@localhost.localdomain [Fri, 2 Mar 2007 15:10:54 +0000 (15:10 +0000)]
.S->.o generation should depend on asm-offsets.h

While object files generated from C sources should generally not
depend on asm-offsets.h, those generated from assembly sources
should.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxend: Fix startup when dom0 does not see all physical cpus.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 15:08:26 +0000 (15:08 +0000)]
xend: Fix startup when dom0 does not see all physical cpus.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxend: Catch VmError exception when creating a domain and do
kfraser@localhost.localdomain [Fri, 2 Mar 2007 14:57:18 +0000 (14:57 +0000)]
xend: Catch VmError exception when creating a domain and do
appropriate cleanup.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoacm: Fix bogus domain_rcu_lock() invocations to rcu_unlock_domain().
kfraser@localhost.localdomain [Fri, 2 Mar 2007 14:42:25 +0000 (14:42 +0000)]
acm: Fix bogus domain_rcu_lock() invocations to rcu_unlock_domain().
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEN] Remove a race condition in shadow mark_dirty code.
Tim Deegan [Fri, 2 Mar 2007 13:46:39 +0000 (13:46 +0000)]
[XEN] Remove a race condition in shadow mark_dirty code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Support new 'fast suspend' mode which does not require us to
kfraser@localhost.localdomain [Fri, 2 Mar 2007 12:11:52 +0000 (12:11 +0000)]
linux: Support new 'fast suspend' mode which does not require us to
hotplug all auxiliary CPUs.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agotools: Advertise save/restore multiple VCPU contexts capability.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 12:11:10 +0000 (12:11 +0000)]
tools: Advertise save/restore multiple VCPU contexts capability.
This capability means that save/restore will remember contexts of all
online VCPUs at the time of final guest suspend. Any initialised but
offline VCPUs will not be saved!
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[xenstored] Fix error path when xc_map_foreign_range fails.
Christian Limpach [Fri, 2 Mar 2007 11:25:12 +0000 (11:25 +0000)]
[xenstored] Fix error path when xc_map_foreign_range fails.
If xc_map_foreign_range fails, the new domain object is freed,
but it is not removed from the connection list.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoSave/restore context of all online VCPUs in PV save/restore/migrate.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 17:59:17 +0000 (17:59 +0000)]
Save/restore context of all online VCPUs in PV save/restore/migrate.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[tools] Set guest address size to be the same as dom0 address size on restore.
Christian Limpach [Thu, 1 Mar 2007 17:28:31 +0000 (17:28 +0000)]
[tools] Set guest address size to be the same as dom0 address size on restore.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[XEN] Check that the cr3 mfn is valid before using it.
Christian Limpach [Thu, 1 Mar 2007 17:27:31 +0000 (17:27 +0000)]
[XEN] Check that the cr3 mfn is valid before using it.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agolinux: No need to kmem_cache_shrink(pgd_cache) on save/restore.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 15:56:45 +0000 (15:56 +0000)]
linux: No need to kmem_cache_shrink(pgd_cache) on save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFully reset the xenstore connection when a domain is (re)introduced to xenstored.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 14:51:12 +0000 (14:51 +0000)]
Fully reset the xenstore connection when a domain is (re)introduced to xenstored.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Save/restore: remove bogus "valid state" check
Tim Deegan [Thu, 1 Mar 2007 14:00:05 +0000 (14:00 +0000)]
[HVM] Save/restore: remove bogus "valid state" check
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agohvm: Clean up console-information passing via xenstore.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 13:57:25 +0000 (13:57 +0000)]
hvm: Clean up console-information passing via xenstore.

Each serial, parallel and monitor device in qemu that is connected to
a pty creates a xenstore node of the form:
 <domain-path>/monitor/tty
 <domain-path>/serial/<n>/tty
 <domain-path>/parallel/<n>/tty

In addition, serial/0 (com1) also registers its information at:
 <domain-path>/console/tty

Also fix a realloc() failure memory leak.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years agoFix Xend domain_lookup error report when looking up an invalid
kfraser@localhost.localdomain [Thu, 1 Mar 2007 13:48:31 +0000 (13:48 +0000)]
Fix Xend domain_lookup error report when looking up an invalid
domain: raise the correct error code (XendInvalidDomain instead of
XendError). Also remove redundance exception code that is handled by
domain_lookup.

Signed-off-by: Yung Giang <ygiang@gmail.com>
19 years agoacm: Fix the traversal of the event channel buckets and use the active
kfraser@localhost.localdomain [Thu, 1 Mar 2007 13:45:53 +0000 (13:45 +0000)]
acm: Fix the traversal of the event channel buckets and use the active
grant table entries instead of the shared ones. I had to move some
functions from grant_table.c into grant_table.h to make them usable by
the ACM module.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoCreate P2M map during Mini-OS boot (fixes 'xm dump-core').
kfraser@localhost.localdomain [Thu, 1 Mar 2007 12:23:44 +0000 (12:23 +0000)]
Create P2M map during Mini-OS boot (fixes 'xm dump-core').
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
19 years agoFix PAE Mini-OS build.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 12:23:04 +0000 (12:23 +0000)]
Fix PAE Mini-OS build.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
19 years agox86: No need to take full reference when doing mmu_update on a foreign
kfraser@localhost.localdomain [Thu, 1 Mar 2007 12:14:53 +0000 (12:14 +0000)]
x86: No need to take full reference when doing mmu_update on a foreign
domain. Also fix a pre-existing race setting PGT_pinned versus
clearing it during domain_kill().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Cleanups and bug fixes after the rcu_lock_domain patch.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 11:38:55 +0000 (11:38 +0000)]
xen: Cleanups and bug fixes after the rcu_lock_domain patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove Xen workaround for HVM builder now that it's fixed
Tim Deegan [Thu, 1 Mar 2007 11:08:49 +0000 (11:08 +0000)]
Remove Xen workaround for HVM builder now that it's fixed
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoMerge
Tim Deegan [Thu, 1 Mar 2007 11:04:45 +0000 (11:04 +0000)]
Merge

19 years ago[HVM] Builder must know which kind of vcpu context struct to use
Tim Deegan [Thu, 1 Mar 2007 11:04:23 +0000 (11:04 +0000)]
[HVM] Builder must know which kind of vcpu context struct to use
when the tools are being run in a compat-mode domain
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxen: Use RCU-based domain-locking functions where appropriate.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 10:44:40 +0000 (10:44 +0000)]
xen: Use RCU-based domain-locking functions where appropriate.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
19 years agoxen: Last minute rename of RCU domain get/put functions:
kfraser@localhost.localdomain [Thu, 1 Mar 2007 10:32:52 +0000 (10:32 +0000)]
xen: Last minute rename of RCU domain get/put functions:
 find_domain_rcu_lock -> rcu_lock_domain_by_id
 domain_rcu_unlock    -> rcu_unlock_domain
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvm/ia64: Fix IDE PIO acceleration.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 10:24:19 +0000 (10:24 +0000)]
hvm/ia64: Fix IDE PIO acceleration.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
19 years agoChange compat-check in set_vcpucontext again. Give caller leeway for
kfraser@localhost.localdomain [Thu, 1 Mar 2007 10:01:51 +0000 (10:01 +0000)]
Change compat-check in set_vcpucontext again. Give caller leeway for
HVM guests only.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix cset 14166
Tim Deegan [Thu, 1 Mar 2007 09:52:40 +0000 (09:52 +0000)]
[XEN] Fix cset 14166
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago Use stat to poll on phantom device until it becomes ready
Wim Colgate [Wed, 28 Feb 2007 20:35:36 +0000 (12:35 -0800)]
Use stat to poll on phantom device until it becomes ready

    Signed-off by Wim Colgate <wim@xensource.com>

19 years agolibxc: Quieten the discard_file_cache() function. Preserve errno
kfraser@localhost.localdomain [Wed, 28 Feb 2007 18:15:42 +0000 (18:15 +0000)]
libxc: Quieten the discard_file_cache() function. Preserve errno
across it. No longer make calls to the function dependent on 'non-live
save/restore': it's not a good test of whether the fd is a socket.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix init.d/xendomains startup script so log_error and log_success
kfraser@localhost.localdomain [Wed, 28 Feb 2007 18:06:56 +0000 (18:06 +0000)]
Fix init.d/xendomains startup script so log_error and log_success
will also work on redhat-based distributions before RHEL 5. See
discussion "xendomains init script" about a year ago on xen-devel.

Signed-off-by: Florian Kirstein <ray@ray.net>
19 years agolinux: More save/restore fixes. Fix deadlock of cpu_hotplug_lock vs
kfraser@localhost.localdomain [Wed, 28 Feb 2007 17:55:19 +0000 (17:55 +0000)]
linux: More save/restore fixes. Fix deadlock of cpu_hotplug_lock vs
workqueue_mutex. This is a new deadlock since the workqueue_mutex is
acquired in the workqueue_cpu_calbback() function across
CPU_UP_PREPARE->CPU_ONLINE.

The fix is for us not to rudely grab the cpu_hotplug_lock() during
save/restore -- it's really not necessary.

This patch is applicable to any of our 2.6 kernels, but is absolutely
required from 2.6.18 onwards.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN][SHADOW] Use slow method for early-unshadow
George Dunlap [Wed, 28 Feb 2007 16:13:49 +0000 (11:13 -0500)]
[XEN][SHADOW] Use slow method for early-unshadow

The "fast" method fails a significant portion of the time.
unshadow will still use the "fast" method, but will fall
back to a brute-force method if it fails.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years ago[XEN][SHADOW] Fix early-unshadow logic.
George Dunlap [Wed, 28 Feb 2007 16:11:22 +0000 (11:11 -0500)]
[XEN][SHADOW] Fix early-unshadow logic.

Make sure to reset the early-unshadow logic when we
do a fast-path propagate or when we emulate a non-zero
write.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years agohvm: Only do hvm_disable() on HVM-enabled systems.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 14:44:52 +0000 (14:44 +0000)]
hvm: Only do hvm_disable() on HVM-enabled systems.

Original patch by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Disable idle-loop alternatives.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 14:34:25 +0000 (14:34 +0000)]
linux: Disable idle-loop alternatives.

ACPI and APM idle functions in particular are not suitable choices
when running on Xen.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Split suspend_mutex into watch_mutex and transaction_mutex.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 14:26:26 +0000 (14:26 +0000)]
linux: Split suspend_mutex into watch_mutex and transaction_mutex.
This clarifies their usage and relationship with request_mutex and
response_mutex.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMore PV save/restore fixes.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 14:13:09 +0000 (14:13 +0000)]
More PV save/restore fixes.

Related changesets:
 14148:b67c253d1cdb4f502dec2
 13519:b4a8000e76db6b4b27341

These three changesets must be applied as a set!

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix 32-bit x86 compile
Tim Deegan [Wed, 28 Feb 2007 13:22:20 +0000 (13:22 +0000)]
Fix 32-bit x86 compile

19 years ago[XEN] Compat-mode dom0 always provides compat vcpu_guest_context structs.
Tim Deegan [Wed, 28 Feb 2007 13:19:16 +0000 (13:19 +0000)]
[XEN] Compat-mode dom0 always provides compat vcpu_guest_context structs.
Update arch_set_info_guest to do the right thing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Make the compat-mode l4 page table look more like a page table
Tim Deegan [Wed, 28 Feb 2007 13:17:27 +0000 (13:17 +0000)]
[XEN] Make the compat-mode l4 page table look more like a page table
and remove some special-case code in the shadows.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] No need to change the compat mode of the guest in xen.
Christian Limpach [Wed, 28 Feb 2007 10:40:52 +0000 (10:40 +0000)]
[XEN] No need to change the compat mode of the guest in xen.
The tools set the compat mode already explicitly.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoLoop on actual elfnote array size rather than depending on ELFNOTE_MAX
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:44:59 +0000 (09:44 +0000)]
Loop on actual elfnote array size rather than depending on ELFNOTE_MAX
macro.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd suspend_cancel flag to linux elf notes.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:41:02 +0000 (09:41 +0000)]
Add suspend_cancel flag to linux elf notes.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoAdd xm save -c/--checkpoint option
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:39:23 +0000 (09:39 +0000)]
Add xm save -c/--checkpoint option

xm save --checkpoint leaves the domain running after creating the
snapshot.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoLet xend choose to do hard or soft domain resumption depending on
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:39:03 +0000 (09:39 +0000)]
Let xend choose to do hard or soft domain resumption depending on
whether the domain advertises support for soft resumption in its
elfnotes.

Signed-off-by: Brendan Cully <brendan@kublai.com>
19 years agoFix off-by-one preventing the last elfnote from being read in xc.c.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:38:14 +0000 (09:38 +0000)]
Fix off-by-one preventing the last elfnote from being read in xc.c.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoAdd openssl-dev and xorg-x11-dev to README
kfraser@localhost.localdomain [Tue, 27 Feb 2007 20:27:18 +0000 (20:27 +0000)]
Add openssl-dev and xorg-x11-dev to README

Attached is a documentation patch to the top-level README file; it
just adds two notes saying that you need to have openssl-devel and
xorg-x11-devel installed to successfully complete a "make world" at
the top level.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
19 years ago[XEN] [ACM] Simplify the event channel scanning
kfraser@localhost.localdomain [Tue, 27 Feb 2007 20:22:36 +0000 (20:22 +0000)]
[XEN] [ACM] Simplify the event channel scanning

This patch simplifies the scanning of a domain's event channels
considering that an 'ECS_UNBOUND' event channel is not connected and
can be skipped.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoFix for Solaris compile/output for VBDs in xentop.
kfraser@localhost.localdomain [Tue, 27 Feb 2007 16:13:08 +0000 (16:13 +0000)]
Fix for Solaris compile/output for VBDs in xentop.
Signed-off-by: John Levon <john.levon@sun.com>
19 years agomerge
Ian Campbell [Tue, 27 Feb 2007 15:40:37 +0000 (15:40 +0000)]
merge

19 years ago[TOOLS] Add support for XEN_ELFNOTE_L1_MFN_VALID to readnotes.
Ian Campbell [Tue, 27 Feb 2007 15:39:08 +0000 (15:39 +0000)]
[TOOLS] Add support for XEN_ELFNOTE_L1_MFN_VALID to readnotes.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoAccelerate IDE PIO on HVM/IA64 [3/3]
kfraser@localhost.localdomain [Tue, 27 Feb 2007 15:34:55 +0000 (15:34 +0000)]
Accelerate IDE PIO on HVM/IA64 [3/3]

Add a bufferring mechanism for IDE PIO in a hypervisor.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
19 years agoAccelerate IDE PIO on HVM/IA64 [2/3]
kfraser@localhost.localdomain [Tue, 27 Feb 2007 15:34:24 +0000 (15:34 +0000)]
Accelerate IDE PIO on HVM/IA64 [2/3]

Add one more page to the guest for IDE PIO.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
19 years agoAccelerate IDE PIO on HVM/IA64 [1/3]
kfraser@localhost.localdomain [Tue, 27 Feb 2007 15:33:25 +0000 (15:33 +0000)]
Accelerate IDE PIO on HVM/IA64 [1/3]

Add a bufferring mechanism for IDE PIO in qemu.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
19 years agoFix save/restore (and non-live migrate) on PAE.
Steven Hand [Tue, 27 Feb 2007 14:33:07 +0000 (14:33 +0000)]
Fix save/restore (and non-live migrate) on PAE.
Plus add some more debug output to help us spot similar issues in the future.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoAdded SXP pretty-printer.
Ewan Mellor [Tue, 27 Feb 2007 13:58:40 +0000 (13:58 +0000)]
Added SXP pretty-printer.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agolinux: Don't allow partial message raeds from xenstore across
kfraser@localhost.localdomain [Tue, 27 Feb 2007 13:43:01 +0000 (13:43 +0000)]
linux: Don't allow partial message raeds from xenstore across
save/restore. This patch is an essential companion to
13519:b4a8000e76db6b4b27341.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix exception handling to cope with exceptions that do not have a string as
Ewan Mellor [Tue, 27 Feb 2007 11:19:25 +0000 (11:19 +0000)]
Fix exception handling to cope with exceptions that do not have a string as
the first argument.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[TOOLS] Make xentrace help a little more informative.
George Dunlap [Tue, 27 Feb 2007 11:06:29 +0000 (06:06 -0500)]
[TOOLS] Make xentrace help a little more informative.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years agoMerge
George Dunlap [Tue, 27 Feb 2007 11:02:32 +0000 (06:02 -0500)]
Merge

19 years ago[TOOLS] Added option to xentrace to discard records in the buffer
George Dunlap [Tue, 27 Feb 2007 11:01:35 +0000 (06:01 -0500)]
[TOOLS] Added option to xentrace to discard records in the buffer
before beginning the trace.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years agox86: Fix BUG() crash in mm.c.
kfraser@localhost.localdomain [Tue, 27 Feb 2007 11:00:36 +0000 (11:00 +0000)]
x86: Fix BUG() crash in mm.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix missing bits of the docs from cset 14020, and match that change by removing
Ewan Mellor [Tue, 27 Feb 2007 01:52:27 +0000 (01:52 +0000)]
Fix missing bits of the docs from cset 14020, and match that change by removing
the similar fields on host_metrics, PIF_metrics, and VM_guest_metrics.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplementation of host_metrics.get_all, PIF_metrics.get_all, and docs and
Ewan Mellor [Tue, 27 Feb 2007 01:05:32 +0000 (01:05 +0000)]
Implementation of host_metrics.get_all, PIF_metrics.get_all, and docs and
bindings for many of the get_all methods elsewhere that Xend already
implemented.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded some more fields to host_cpu.
Ewan Mellor [Tue, 27 Feb 2007 00:37:27 +0000 (00:37 +0000)]
Added some more fields to host_cpu.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM][SVM] Save/Restore: Remove commented out code
Tim Deegan [Mon, 26 Feb 2007 17:20:36 +0000 (17:20 +0000)]
[HVM][SVM] Save/Restore: Remove commented out code
Code not needed by SVM as the "VM_ENTRY_CONTROLS" register doesn't
exist.

Signed off: Mats Petersson (mats.petersson@amd.com)

19 years agoMissing files from previous changeset.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 17:05:10 +0000 (17:05 +0000)]
Missing files from previous changeset.
Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
19 years ago[xentrace][HVM] introduce HVM tracing to unify SVM and VMX tracing
kfraser@localhost.localdomain [Mon, 26 Feb 2007 17:04:39 +0000 (17:04 +0000)]
[xentrace][HVM] introduce HVM tracing to unify SVM and VMX tracing

* new tracing class TRC_HVM replacing TRC_VMX

* 20 new trace events to differentiate the information carried by them
** added corresponding trace points in SVM and VMX code
** updated formats file: descriptive formatting of trace event data
** completely replacing previous simple tracing in VMX

* possibility to toggle single events on and off at compile time in
  include/asm-x86/hvm/trace.h

Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
19 years agox86: Update map_pages_to_xen() to avoid arithmetic based on
kfraser@localhost.localdomain [Mon, 26 Feb 2007 16:27:35 +0000 (16:27 +0000)]
x86: Update map_pages_to_xen() to avoid arithmetic based on
uninitialised frame_table variable.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: Clean up {alloc,free}_xen_pagetable() interface to avoid use of
kfraser@localhost.localdomain [Mon, 26 Feb 2007 16:25:17 +0000 (16:25 +0000)]
x86: Clean up {alloc,free}_xen_pagetable() interface to avoid use of
frame_table variable before initialisation. This wasn't a bug, but was
confusing.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd argument check for xm network-attach command
Ewan Mellor [Mon, 26 Feb 2007 15:50:50 +0000 (15:50 +0000)]
Add argument check for xm network-attach command

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoFix xm vcpu-set command for when wrong number of VCPU is given
Ewan Mellor [Mon, 26 Feb 2007 15:41:35 +0000 (15:41 +0000)]
Fix xm vcpu-set command for when wrong number of VCPU is given

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoMove credit scheduler configuration into XendDomainInfo, so that the domain
Ewan Mellor [Mon, 26 Feb 2007 15:39:34 +0000 (15:39 +0000)]
Move credit scheduler configuration into XendDomainInfo, so that the domain
will be cleaned up correctly if the scheduler parameters are wrong.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoMerge
Tim Deegan [Mon, 26 Feb 2007 14:48:46 +0000 (14:48 +0000)]
Merge

19 years ago[TOOLS] fix sizeof() usage in xc_core
Tim Deegan [Mon, 26 Feb 2007 14:47:54 +0000 (14:47 +0000)]
[TOOLS] fix sizeof() usage in xc_core
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Fix backward compatibility in page table handling
kfraser@localhost.localdomain [Mon, 26 Feb 2007 14:09:08 +0000 (14:09 +0000)]
linux: Fix backward compatibility in page table handling

A 3.0.2 compatibility requirement slipped my attention before
submitting the original page table handling changes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] Allow log-dirty mode to be enabled on already-shadowed domains.
Tim Deegan [Mon, 26 Feb 2007 13:56:01 +0000 (13:56 +0000)]
[XEN] Allow log-dirty mode to be enabled on already-shadowed domains.
and catch a few missing mark_dirty() calls
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoRemap PCI-ISA IRQ 6 to IRQ 7. Disable LPT1 by default and remove its
kfraser@localhost.localdomain [Mon, 26 Feb 2007 11:53:35 +0000 (11:53 +0000)]
Remap PCI-ISA IRQ 6 to IRQ 7. Disable LPT1 by default and remove its
definition from the ACPI DSDT. This avoids conflict with FDC on IRQ6
(it is a bit more likely that someone will want to connect a floppy
image to a guest than it is that anyone will ever care about
parallel-port functionality).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoResolve conflict over use of name xen_elfnote.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 11:21:03 +0000 (11:21 +0000)]
Resolve conflict over use of name xen_elfnote.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Mon, 26 Feb 2007 10:23:03 +0000 (10:23 +0000)]
Merge